let vue = new Vue({
    el: "#login1",
    data: {
        phone: "18094241579",
        code: ""
    },
    methods: {
        //发送验证码
        sendCode() {
            axios.get(`adminLogin/sendCode?phone=${this.phone}`).then(response => {
                console.log(response);
            })
        },
        //登录验证
        login() {
            axios.get(`adminLogin/login?phone=${this.phone}&code=${this.code}`).then(response => {
                console.log(response);
                location.replace("./index.html");
            })
        },


    }
});